import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

import Home from './views/Home.vue'
import VIPCourse from './views/VIPCourse.vue'
import LiveRoom from './views/LiveRoom.vue'
import NewsArticles from './views/NewsArticles.vue'
import CertificateRequest from './views/CertificateRequest.vue'
import JobHuntingChannel from './views/JobHuntingChannel.vue'
import MineCourse from './views/MineCourse.vue'
import AboutUs from './views/AboutUs.vue'
import OnlineHelp from './views/OnlineHelp.vue'
import VedioDetail from './views/VedioDetail.vue'
export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      redirect:'/home'
    },
    {
      name: 'home',
      path: '/home',
      component: Home,
    },
    {
      name: 'vip',
      path: '/vip',
      component: VIPCourse,
    },
    {
      name: 'liveroom',
      path: '/liveroom',
      component: LiveRoom,
    },
    {
      name: 'articles',
      path: '/articles',
      component: NewsArticles,
    },
    {
      name: 'certificate',
      path: '/certificate',
      component: CertificateRequest,
    },
    {
      name: 'jobhuntingchannel',
      path: '/jobhuntingchannel',
      component: JobHuntingChannel,
    },
    {
      name: 'mine',
      path: '/mine',
      component: MineCourse,
    },
    {
      name: 'about',
      path: '/about',
      component: AboutUs,
    },
    {
      name: 'help',
      path: '/help',
      component: OnlineHelp,
    },
    {
      name: 'vediodetail',
      path: '/vediodetail',
      component: VedioDetail,
    },
  ]
})
